import request from '@/utils/request'

const API = "/admin/hospitalSet"

export default{
    getHospitalSetPage(pageNum,pageSize,searchObj) {
      return request({
        url: `${API}/findPage/${pageNum}/${pageSize}`,
        method: 'post',
        data: searchObj
      })
    },
    deleteHospitalSet(id){
      return request({
        url: `${API}/delete/${id}`,
        method: 'delete'
      })
    },
    batchRemove(ids){
      return request({
        url: `${API}/batchRemove`,
        method: 'delete',
        data: ids
      })
    },
    save(hospitalSet){
      return request({
        url: `${API}/save`,
        method: 'post',
        data: hospitalSet
      })
    },
    getById(id){
      return request({
        url: `${API}/getById/${id}`,
        method: 'get'
      })
    },
    update(hospitalSet){
      return request({
        url: `${API}/update`,
        method: 'put',
        data: hospitalSet
      })
    },
    updateStatus(id,status){
      return request({
        url: `${API}/updateStatus/${id}/${status}`,
        method: 'put'
      })
    }
} 

